﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using KinectGame;

namespace MemoGame
{
    public partial class CreditsUI : KinectBaseForm
    {
        public CreditsUI()
        {
            InitializeComponent();
        }

        public override void Click(int horizontalIndex, int verticalIndex)
        {
            OpenMenu(); 
        }

        public override void SetupForKinectMode()
        {
            base.SetupForKinectMode();
            this.btnMenu.Highlight();
            this.btnMenu.Click -= new System.EventHandler(this.btnMenu_Click);
        }

        public override int SetHorizontalItemNumber()
        {
            return 1;
        }

        public override int SetVerticalItemNumber()
        {
            return 1;
        }

        private void btnMenu_Click(object sender, EventArgs e)
        {
            OpenMenu(); 
        }

        private void OpenMenu()
        {
            this.gameContext.ApplicationMode(this, new MenuUI(), 0);
        }
    }
}
